﻿using GYCTOAManagementSystemNewApi.Model.Tool;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace GYCTOAManagementSystemNewApi.Model
{
    /// <summary>
    /// 财务借款
    /// </summary>
    public class FinanceLoan : Operate
    {
        /// <summary>
        /// 财务借款类别，1代表个人借款，2代表支付申请
        /// </summary>
        //public int FinanceType { get; set; }
        /// <summary>
        /// 借款单据编号
        /// </summary>
        public string LoanNumber { get; set; }
        /// <summary>
        /// 借款人
        /// </summary>
        public int Borrower { get; set; }
        /// <summary>
        /// 借款时间
        /// </summary>
        public DateTime BorrowTime { get; set; }
        /// <summary>
        /// 关联部门
        /// </summary>
        //public int Department { get; set; }
        /// <summary>
        /// 关联项目
        /// </summary>
        public int Project { get; set; }
        ///// <summary>
        ///// 期初余额
        ///// </summary>
        ////public decimal OpeningBalance { get; set; }
        ///// <summary>
        ///// 期末余额
        ///// </summary>
        ////public decimal ClosingBalance { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 财务核准金额
        /// </summary>
        //public decimal ApprovalMoney { get; set; }
        /// <summary>
        /// 转账方式
        /// </summary>
        //public int TransferMethod { get; set; }
        /// <summary>
        /// 转账银行
        /// </summary>
        //public int FinanceBankId { get; set; }
        /// <summary>
        /// 手续费
        /// </summary>
        //public decimal ServiceCharge { get; set; }
        /// <summary>
        /// 已冲账金额
        /// </summary>
        //public decimal ReversalMoney { get; set; }
        /// <summary>
        /// 是否完成冲账
        /// </summary>
        //public bool IsFinishReversal { get; set; }
        /// <summary>
        /// 是否已有票据
        /// </summary>
        //public bool HasInvoice { get; set; }
        /// <summary>
        /// 收款人
        /// </summary>
        //public int Payee { get; set; }
        /// <summary>
        /// 收款人类型，为1代表外部客户，为2代表内部员工
        /// </summary>
        //public int PayeeType { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否完成冲账，出纳审核报销单据，如果冲账完毕，后台自动更新此字段状态，代表关联的所有报销单据审核完成
        /// </summary>
        //public bool IsFinishReversalReal { get; set; }

        /// <summary>
        /// 余额，暂时未用
        /// </summary>
        //public decimal Balance { get; set; }
        /// <summary>
        /// 用于再付功能，将多个支付申请单据关联起来，其中一个为主单据，其余单据为再次申请支付的单据
        /// </summary>
        //public int PrId { get; set; } = 0;

        /// <summary>
        /// 单据详细类别
        /// </summary> 
        //[NotMapped]
        //public List<FinanceDocDetail> FinanceDocDetails;

        #region 2022-2-9   Sgs
        /// <summary>
        /// 实际打款时间
        /// </summary>
        //public DateTime? ActualPaymentTime { get; set; }
        #endregion

        /// <summary>
        /// 采购单号，记录自动生成支付单的采购单号
        /// </summary>
        //public string PurchaseNumbers { get; set; }

        ///// <summary>
        ///// 审批状态
        ///// </summary>
        //public int State { get; set; }
        ///// <summary>
        ///// 单据是否被拒绝
        ///// </summary>
        //public bool IsRefuse { get; set; }
        ///// <summary>
        ///// 内外部负责人签批
        ///// </summary>
        //public int AuditUserId1 { get; set; }
        ///// <summary>
        ///// 内外部负责人签批时间
        ///// </summary>
        //public DateTime? AuditTime1 { get; set; }
        ///// <summary>
        ///// 签批评论
        ///// </summary>
        //public string AuditComment1 { get; set; }
        ///// <summary>
        ///// 会计签批
        ///// </summary>
        //public int AuditUserId2 { get; set; }
        ///// <summary>
        ///// 会计签批时间
        ///// </summary>
        //public DateTime? AuditTime2 { get; set; }
        ///// <summary>
        ///// 签批评论
        ///// </summary>
        //public string AuditComment2 { get; set; }
        ///// <summary>
        ///// 总经理、董事长签批
        ///// </summary>
        //public int AuditUserId3 { get; set; }
        ///// <summary>
        ///// 总经理、董事长签批时间
        ///// </summary>
        //public DateTime? AuditTime3 { get; set; }
        ///// <summary>
        ///// 签批评论
        ///// </summary>
        //public string AuditComment3 { get; set; }
        ///// <summary>
        ///// 出纳签批
        ///// </summary>
        //public int AuditUserId4 { get; set; }
        ///// <summary>
        ///// 出纳签批时间
        ///// </summary>
        //public DateTime? AuditTime4 { get; set; }
        ///// <summary>
        ///// 签批评论
        ///// </summary>
        //public string AuditComment4 { get; set; }
    }

}
